#!/usr/bin/python3
# coding:utf-8
# @Time     :2021/4/13 10:23
# @Author   :whaiy
# @File     :serializer.py
# @Desc     :完成

from .models import UploadStatus,FILESTATUS,PARSESTATUS
from rest_framework import serializers

class UploadStatusSerializer(serializers.ModelSerializer):

    # upload=serializers.SerializerMethodField()
    # parse=serializers.SerializerMethodField()
    class Meta:
        model=UploadStatus
        fields="__all__"

    # def get_upload(self,obj):
    #     return obj.get_upload_display()
    #
    # def get_parse(self,obj):
    #     return obj.get_parse_display()


